package cn.com.bluemoon.daps.common.datascope.sign;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Data
@Configuration
@ConditionalOnProperty(
        value = {"bm.dap.api.sign.auth.enabled"},
        matchIfMissing = false
)
@ConfigurationProperties(prefix = "api.sign",ignoreInvalidFields = true)
public class SignProperties {
 
    /**
     * 哪些请求url需要进行签名
     */
    private List<String> filterUrls = new ArrayList<>();

    private String urlPatterns = "/api/*";
}